package com.xuhuan.demo.pattern.prototype;

/**
 * @author huan.xu
 * @date 2021/10/4 18:44
 * @description
 */
public class Client {

    public static void main(String[] args) {
        Sheep sheep = new Sheep("tom", 3, "白色");
        new Sheep(sheep.getName(),sheep.getAge(),sheep.getColor());
        new Sheep(sheep.getName(),sheep.getAge(),sheep.getColor());
        new Sheep(sheep.getName(),sheep.getAge(),sheep.getColor());
    }
}
